package com.alibaba.citrus.cr.unified.inventory.model.enums;

import java.util.Objects;

/**
 * @description:
 * @author: yuhw
 * @date: 2021年10月14日 14:38
 **/
public enum AllocateOrderShipTypeEnums {
    CAR(1,"汽运配送"),
    TRAIN(2,"铁运配送"),
    SEA(3,"海运配送"),
    AIR(4,"空运配送"),
    CAR_SELF(5,"汽运自提"),
    LTL(6,"零担运输"),
    SET_TO_CAR(7,"集改汽运输");
    private Integer type;
    private String desc;

    public static String get(Integer type){
        for (AllocateOrderShipTypeEnums e : values()){
            if (e.getType().intValue() == type.intValue()){
                return e.getDesc();
            }
        }
        return null;
    }

    AllocateOrderShipTypeEnums(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
